Carbon


PBCreateFileUnicodeSync

Header: Files.h Carbon status: Supported

Creates a new file in the specified directory.

OSErr PBCreateFileUnicodeSync (
    FSRefParam *paramBlock
);
Parameter descriptions
paramBlock

A pointer to a parameter block.

function result

A result code.

DISCUSSION

The relevant fields of the parameter block are:

You may optionally set catalog information for the file using the whichInfo and catalogInfo parameters; this is equivalent to calling FSSetCatalogInfo after creating the file. If possible, you should set the textEncodingHint in the catalogInfo.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 9, or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)